package com.weiyin.examination.module;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * @author njf
 * @date 2017/10/20
 */

public class SubjectY implements Parcelable {
    private String num;
    private String subjectY;

    protected SubjectY(Parcel in) {
        num = in.readString();
        subjectY = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(num);
        dest.writeString(subjectY);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<SubjectY> CREATOR = new Creator<SubjectY>() {
        @Override
        public SubjectY createFromParcel(Parcel in) {
            return new SubjectY(in);
        }

        @Override
        public SubjectY[] newArray(int size) {
            return new SubjectY[size];
        }
    };

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getSubjectY() {
        return subjectY;
    }

    public void setSubjectY(String subjectY) {
        this.subjectY = subjectY;
    }

}
